import tensorflow as tf
# 两个常量相加
tensor1 = tf.constant([1, 2, 3, 4])
tensor2 = tf.constant([6, 6, 6, 6])
result = tf.add(tensor1, tensor2)

# 生成3*4的矩阵，每个元素为int类型的1
mat = tf.ones([3, 4], tf.int32)

# 生成25~100间，等差分布的4个数，包括25和100
range_t = tf.linspace(25.0, 100.0, 4)

# 生成序列
seq = tf.range(6, 15, 2)
with tf.Session() as sess:
    print(sess.run(seq))
